<script setup lang="ts">
let score =100
const changeScore = () => {
    score++
    console.console.log(score);
    
}
 
</script>
<template>
    <button @click="changeScore">加分</button>
    <div>分数：{{ score }}</div>
</template>
<!-- 普通数据不具备响应式，所以不能数据引起视图更新 -->